import { AdcdService } from './../adcdservice.service';
import { Component, OnInit } from '@angular/core';
import { SelectItemGroup } from 'primeng/api';
@Component({
  selector: 'ngx-provincecitycountyselectitem',
  templateUrl: './provincecitycountyselectitem.component.html',
  styleUrls: ['./provincecitycountyselectitem.component.scss']
})

export class ProvincecitycountyselectitemComponent implements OnInit {
  adcd:string;
  groupedProvinceCityCounty: SelectItemGroup[];
  constructor(
    private adcdService:AdcdService    
  ) { }

  ngOnInit() {
   this.getProvinceCityCounty();
  }
  getProvinceCityCounty(): void {
    this.adcdService.getProvinceCityCountySelectItem().subscribe(adcdItem => this.groupedProvinceCityCounty=adcdItem);
  }
}
